package com.example.permission.entity;

import java.util.Date;
import java.util.List;

public class Role {
    private Long id;
    private String name;
    private String description;
    private Integer status;
    private Date createTime;
    private Date updateTime;

    private List<Menu> menus;
    private List<User> users;

    // 构造方法
    public Role() {}

    // Getter和Setter方法
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }

    public Integer getStatus() { return status; }
    public void setStatus(Integer status) { this.status = status; }

    public Date getCreateTime() { return createTime; }
    public void setCreateTime(Date createTime) { this.createTime = createTime; }

    public Date getUpdateTime() { return updateTime; }
    public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }

    public List<Menu> getMenus() { return menus; }
    public void setMenus(List<Menu> menus) { this.menus = menus; }

    public List<User> getUsers() { return users; }
    public void setUsers(List<User> users) { this.users = users; }
}